{layout name="layout" /}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            课程列表
            <small>您目前所选课程</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 后台</a></li>
            <li class="active">课程列表</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- Small boxes (Stat box) -->
        <div class="row">
            <div class="col-xs-6">
            <h4><strong >班级列表</strong></h4>
            <!-- Chat box -->
            <div  class="form-control" style="height: 600px; overflow:scroll; ">
                <div style="border: 1px  #000000; width: 90%; margin: 0 auto;">
                    <span>
                    <table>
                        <tr >
                            <td style="width: 200px;">ID</td>
                            <td style="width: 200px;">Name</td>
                            <td style="width: 200px;">角色</td>
                        </tr>
                        <?php foreach($result as $row): ?>
                        <tr >
                            <td style="width: 200px;">{$row.person_id}</td>
                            <td style="width: 200px;">{$row.name}</td>
                            <td style="width: 200px;"><a href="/index/Cla/personStatus?class_id={$class_id}&person_id={$row.person_id}&status={$row.status}"><?php if($row['status']==1){echo "组长";}else{echo "学生";} ?></a></td>
                        </tr>
                        <?php endforeach; ?>


                    </table>
                    </span>
                </div>
            </div>
            </div>
        </div>



    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
